package daos

import java.util.List
import model.Villano

class VillanoDAO implements Operations<Villano>{

	@Property val List<Villano> villanos= newArrayList

	override quitar(Villano t) {
			this.villanos.remove(t)
	}
	
	override agregar(Villano t) {
			this.villanos.add(t)
	}
	
	override buscar(String t) {
		this.villanos.filter[it.nombre == t].get(0)
	}
	
}

